# cmake verson，指定cmake版本
cmake_minimum_required(VERSION 3.10)

# project name，指定项目的名称，一般和项目的文件夹名称对应
project(SQLliteWrapper)

# 设置C++标准
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "-Wl,--no-as-needed ${CMAKE_CXX_FLAGS}")

add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/thirdparty/SQLiteCpp)

add_executable(SQLliteWrapper src/main.cpp)
target_link_libraries(SQLliteWrapper
  SQLiteCpp
  sqlite3
  pthread
  dl
  )